<%@ page language="java" %> 
<%@page import="java.util.List"%>
<%@page import="java.util.Collections"%>
<%@page import="java.util.Enumeration"%>

<html>

<head >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>ProMan</title>

<!-- Wind -->
<link rel="stylesheet" href="wind/css/Wind.css" type="text/css">
<script src="wind/js/prototype.js"></script>
<script src="wind/js/WindView.js"></script>
<script src="wind/js/WindWindow.js"></script>
<script src="wind/js/WindLabel.js"></script>
<script src="wind/js/WindLink.js"></script>
<script src="wind/js/WindText.js"></script>
<script src="wind/js/WindRadio.js"></script>
<script src="wind/js/WindButton.js"></script>
<script src="wind/js/WindGrid.js"></script>
<script src="wind/js/WindList.js"></script>
<script src="wind/js/WindTable.js"></script>
<script src="wind/js/WindTree.js"></script>
<script src="wind/js/WindDate.js"></script>
<script src="wind/js/WindNumber.js"></script>
<script src="wind/js/WindColor.js"></script>
<script src="wind/js/WindSelector.js"></script>
<script src="wind/js/WindMessages.js"></script>
<script src="wind/js/WindDialog.js"></script>
<script src="wind/js/WindMenu.js"></script>
<script src="wind/js/WindTabs.js"></script>
<script src="wind/js/WindCrumbs.js"></script>
<script src="wind/js/WindPanel.js"></script>
<script src="wind/js/WindAjax.js"></script>
<script src="wind/js/WindProgress.js"></script>
<script src="wind/js/WindPosts.js"></script>
<script src="wind/js/WindDataCommand.js"></script>
<script src="wind/js/WindData.js"></script>
<script src="wind/js/WindTypes.js"></script>
<script src="wind/js/WindLayout.js"></script>
<script src="wind/js/WindHorizontalTabs.js"></script>
<script src="wind/js/WindVerticalMenuItems.js"></script>
<script src="wind/js/WindDataTables.js"></script>
<script src="wind/js/WindDataTableColumns.js"></script>
<script src="wind/js/WindFramework.js"></script>
<script src="wind/js/WindEntities.js"></script>
<script src="wind/js/WindSegmented.js"></script>
<script src="wind/js/WindSession.js"></script>
<script src="wind/js/WindToolbar.js"></script>
<script src="wind/js/WindLogger.js"></script>

<!-- XKAlendar -->
<link rel="stylesheet" href="xkalendar/css/XKalendar.css" type="text/css">
<script src="xkalendar/js/XKalendar.js"></script>

<!-- ProMan -->
<link rel="stylesheet" href="proman/css/ProMan.css" type="text/css">
<link rel="stylesheet" href="proman/css/CalendarWeek.css" type="text/css">
<link rel="stylesheet" href="proman/css/TaskSelector.css" type="text/css">
<link rel="stylesheet" href="proman/css/TaskDialog.css" type="text/css">
<link rel="stylesheet" href="proman/css/TaskDefinition.css" type="text/css">

<script src="proman/js/DateDTO.js"></script>
<script src="proman/js/TaskDTO.js"></script>
<script src="proman/js/TaskDefinitionDTO.js"></script>
<script src="proman/js/TasksDTO.js"></script>
<script src="proman/js/TaskSelector.js"></script>
<script src="proman/js/TaskDialog.js"></script>
<script src="proman/js/CalendarWeek.js"></script>
<script src="proman/js/TaskTree.js"></script>
<script src="proman/js/TaskDefinition.js"></script>
<script src="proman/js/TasksDefinitions.js"></script>

<script src="proman/js/ProManHome.js"></script>
<script src="proman/js/ProManCalendar.js"></script>
<script src="proman/js/ProManDefinition.js"></script>
<script src="proman/js/ProManPlanning.js"></script>
<script src="proman/js/ProManProfile.js"></script>
<script src="proman/js/ProManAdministration.js"></script>
<script src="proman/js/ProMan.js"></script>

<script>
var WindRequestParameters = new Object(); 
WindRequestParameters.registerRequestParameters = function() {
	<% 
	List<String> parameterNames = Collections.list((Enumeration<String>)request.getParameterNames());
	for(String name : parameterNames) {
		String value = request.getParameter(name);
		%>
		WindRequestParameters.registerRequestParameter('<%= name %>','<%= value %>');
		<%
	}
	%>
}
WindRequestParameters.registerRequestParameter = function(name, value) {
	sessionStorage[name] = value;
}
WindRequestParameters.getRequestParameter = function(name) {
	return sessionStorage[name];
}
</script>

</head>

<body onload="WindRequestParameters.registerRequestParameters();ProMan.start();">

</body>

</html>